// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
import VueParticles from 'vue-particles'
Vue.use(VueParticles)

import VCharts from 'v-charts'
Vue.use(VCharts)


import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
Vue.config.productionTip = false;
Vue.use(Antd);

// import "@/ziti/style.scss"





/* eslint-disable no-new */



import router from './router'

//全局前置守卫
// router.beforeEach((to, from, next) => {
//   console.log('全局守卫前置')
//   console.log('to===', to);
//   console.log('from===', from);
//   console.log('roleId', sessionStorage.getItem('roleId'));
//   // if(to.path!=='/login'&&sessionStorage.getItem('roleId')===null){
//   if (to.name !== 'Home') {
//     next('../home')
//   } else {
//     next();
//   }

// })


Vue.config.productionTip = false


/* eslint-disable no-new */
new Vue({
  el: '#app',
  render: h => h(App),
  router,
  components: { App },
  template: '<App/>'
})
